using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace ICP_MS.Plugin.Experiment;

public class FormWash : Form
{
	private IContainer components = null;

	private Label label2;

	private Button btnOK;

	private Button btnCancel;

	public string Samplename { get; set; }

	public FormWash()
	{
		InitializeComponent();
	}

	private void FormUptake_Load(object sender, EventArgs e)
	{
		Win32API.SetTopMost((Control)this);
		ApplyResources();
	}

	private void ApplyResources()
	{
		Text = Lang.Txt("FormWash.Title.Text");
		label2.Text = Lang.Txt("FormWash.ImportWater.Text");
		btnCancel.Text = Lang.Txt("FormWash.Button.Cancel.Text");
		btnOK.Text = Lang.Txt("FormWash.Button.OK.Text");
	}

	private void btnOK_Click(object sender, EventArgs e)
	{
		base.DialogResult = DialogResult.OK;
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.label2 = new System.Windows.Forms.Label();
		this.btnOK = new System.Windows.Forms.Button();
		this.btnCancel = new System.Windows.Forms.Button();
		base.SuspendLayout();
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(58, 46);
		this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(184, 16);
		this.label2.TabIndex = 2;
		this.label2.Text = "导入冲洗液进行冲洗。。";
		this.btnOK.Location = new System.Drawing.Point(35, 96);
		this.btnOK.Margin = new System.Windows.Forms.Padding(4);
		this.btnOK.Name = "btnOK";
		this.btnOK.Size = new System.Drawing.Size(100, 31);
		this.btnOK.TabIndex = 3;
		this.btnOK.Text = "确认(&Y)";
		this.btnOK.UseVisualStyleBackColor = true;
		this.btnOK.Click += new System.EventHandler(btnOK_Click);
		this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
		this.btnCancel.Location = new System.Drawing.Point(153, 96);
		this.btnCancel.Margin = new System.Windows.Forms.Padding(4);
		this.btnCancel.Name = "btnCancel";
		this.btnCancel.Size = new System.Drawing.Size(100, 31);
		this.btnCancel.TabIndex = 4;
		this.btnCancel.Text = "取消(&N)";
		this.btnCancel.UseVisualStyleBackColor = true;
		base.AcceptButton = this.btnOK;
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 16f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.CancelButton = this.btnCancel;
		base.ClientSize = new System.Drawing.Size(282, 157);
		base.Controls.Add(this.btnCancel);
		base.Controls.Add(this.btnOK);
		base.Controls.Add(this.label2);
		this.Font = new System.Drawing.Font("SimSun", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
		base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
		base.Margin = new System.Windows.Forms.Padding(4);
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "FormWash";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "冲洗";
		base.TopMost = true;
		base.Load += new System.EventHandler(FormUptake_Load);
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
